<?php


// 子类扩展站点类别
class SiteChild extends Site
{
    var $category;

    function setCate($par)
    {
        $this->category = $par;
    }

    function getCate()
    {
        echo $this->category . PHP_EOL;
    }

    //方法重写
    function getTitle()
    {
        echo $this->title . PHP_EOL;
        return $this->title;
    }
}